import request from '@/utils/request'

// 查询教师信息列表
export function listJyTeacher(query) {
  return request({
    url: '/research/jyTeacher/list',
    method: 'get',
    params: query
  })
}

// 查询教师信息详细
export function getJyTeacher(id) {
  return request({
    url: '/research/jyTeacher/' + id,
    method: 'get'
  })
}

// 新增教师信息
export function addJyTeacher(data) {
  return request({
    url: '/research/jyTeacher',
    method: 'post',
    data: data
  })
}

// 修改教师信息
export function updateJyTeacher(data) {
  return request({
    url: '/research/jyTeacher',
    method: 'put',
    data: data
  })
}

// 删除教师信息
export function delJyTeacher(id) {
  return request({
    url: '/research/jyTeacher/' + id,
    method: 'delete'
  })
}

// 通过教研组Id查询该教研组的老师
export function getListByGroupId(groupId, query) {
  return request({
    url: '/research/jyTeacher/groupId/' + groupId,
    method: 'get',
    params: query
  })
}
